FROM java:8-jdk-alpine
LABEL author="lizhenliang" 
ENV JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8 -Duser.timezone=GMT+08"
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
    apk add -U tzdata && \
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
COPY target/web-demo-0.1.0.jar /app/web-demo-0.1.0.jar
EXPOSE 8080 
CMD ["/bin/sh", "-c", "java -jar $JAVA_OPTS /app/web-demo-0.1.0.jar"]
